From: Boyuan Yang Date: Tue, 9 Sep 2025 12:25:14 +0000 (-0400) Subject: Force build with c++17 X-Git-Tag: archive/raspbian/1.1.9+ds1-4+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=3b2c50b66c6f41dbe3c3e05795f12e305cd97104;p=opencc.git Force build with c++17 Needed by googletest. Gbp-Pq: Name 0002-Force-build-with-c-17.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bdf702c..2f2776c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,7 +155,7 @@ add_definitions( if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") add_definitions( - -std=c++14 + -std=c++17 -Wall ) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") @@ -164,7 +164,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") endif () elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_definitions( - -std=c++14 + -std=c++17 -Wall ) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")